<?php
/**
 * Created by PhpStorm.
 * User: 木易
 * Date: 2019/1/9
 * Time: 10:30
 */
namespace app\admin\controller;
use think\Controller;

class Base extends Controller
{
    public function _initialize(){
        if (!session('username')){
            $this->error('请登录','admin/login/index');
        }
    }
}